package top.codedance.iotp.client.net.listenner;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import top.codedance.iotp.common.entity.PluginResultEntity;

public interface PluginService {

    /**
     * 初始化服务
     */
    void init() throws Exception;

    /**
     * 执行命令
     * @param items
     * @return
     */
    PluginResultEntity execute(JSONArray items);

    /**
     * 执行命令2
     * @param jo
     * @return
     */
    PluginResultEntity execute(JSONObject jo);
}
